package com.chunguang.study.mq;

import javax.jms.Queue;

import org.apache.activemq.command.ActiveMQQueue;
import org.jboss.logging.Property;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * jms 队列配置
 * 
 * @author wujing
 */
@Configuration
public class JmsConfiguration {
	@Value(value = "${roncoo.queu}")
	private  String queue;
	
	@Bean
	public Queue queue() {
		return new ActiveMQQueue(queue);
	}

}

